package com.yuchen.bearrecord.service;

import com.yuchen.bearrecord.config.Result;
import com.yuchen.bearrecord.entity.Drug;

public interface DrugService {
    Result getDrugDetail(Long id);

    Result getDrugList();

    Result getExpireDrugs();

    Result searchDurgs(String keyword);

    Result addDrug(Drug drug);

    Result deleteDrug(Long id);

    Result updateDrug(Drug drug);

    Result updateDrugSurplus(Drug drug);

    Result getUserDrugList(String openid);

    Result updateUserDrug(Drug drug);

    Result deleteUserDrug(Long id);

    Result clearDrugs();

    Result getSelectDrugs();

    boolean checkAdmin();
}
